import time
import threading
def test():

 while 1==1:
  time.sleep(5)
  print("111")
def test2():
 while 1==1:
  time.sleep(5)
  print("222")  
thread1=threading.Thread(target=test)
thread2=threading.Thread(target=test2)
print("0000")
thread1.start()
print("0000")
thread2.start()
print("0000")
print('主线程完成了')